<?php

namespace app\admin\validate;
use think\Validate;

class Account extends Validate
{
    protected $rule = [
        'money'              => 'float',
        'growth'             => 'integer',
        'integral'           => 'integer',
        'change_desc'        => 'require',
    ];

    protected $message = [
        'money.float'            => '余额必须为数字',
        'growth.integer'         => '成长值必须为整数',
        'integral.integer'       => '积分必须为整数',
        'change_desc.require'    => '备注不能为空'
    ];
}
